arm/vgic: drop const attribute from gic_iomem_deny_access()
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 29 Sep 2022 12:41:13 +0000 (14:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2022 12:41:13 +0000 (14:41 +0200)
commit9982fe275ba4ee1a749b6dde5602a5a79e42b543
tree9b7bec0ece3ba2ccd369ae319c2e1d4df6d1711e
parent0db195c1a9947240b354abbefd2afac6c73ad6a8
arm/vgic: drop const attribute from gic_iomem_deny_access()

While correct from a code point of view, the usage of the const
attribute for the domain parameter of gic_iomem_deny_access() is at
least partially bogus.  Contents of the domain structure (the iomem
rangeset) is modified by the function.  Such modifications succeed
because right now the iomem rangeset is allocated separately from
struct domain, and hence is not subject to the constness of struct
domain.

Amend this by dropping the const attribute from the function
parameter.

This is required by further changes that will convert
iomem_{permit,deny}_access into a function.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/gic.c
xen/arch/arm/include/asm/gic.h